<template>
  <div id="new">
    <button @click="isShow=true">new</button>
    <Model :isShow.sync="isShow" :title="title">
      <template slot="content">
        <p>我是new内容</p>
      </template>
      <template slot="ipt">
        <input type="text" v-model="inp">
      </template>
      <template slot="btns">
        <button @click="isShow=false">确认new</button>
        <button>取消new</button>
      </template>
    </Model>
  </div>
</template>

<script>
import Model from '../components/Model'
export default {
  data() {
    return {
      isShow: false,
      title: "newtitle",
      inp:''
    };
  },
  methods: {},
  components: {
    Model,
  },
};
</script>

<style scoped>
</style>